home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gDel, gTime, gDely, gX1, gX2, gShot, gPinList, gXBall, gYBall, gZBall, gBall, gAb, gNb, gpoint, gEBall, gHHList, gDDList, gTTList, gWWList, gBPList, gWPList, gDPList, gVPList, gDTList, gPHList, gPinSnd
- set gHHList to list(320, 308, 332, 296, 320, 342, 284, 308, 332, 354)
- set gDDList to list(-4, -4, -5, -5, -6, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 6, 5, 5, 4, 4)
- set gTTList to list(5, 5, 5, 5, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1)
- set gWWList to list(2, 8, 4, 6)
- set gBPList to list(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
- set gWPList to list(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
- set gDPList to list(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
- set gVPList to list(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
- set gDTList to list(9, 9, 9, 9, 9, 9, 9, 9, 9, 9)
- set gPHList to list(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
- set gPinSnd to 1
- set gEBall to integer(256 / gDely)
- set gpoint to 0
- set gAb to 1
- set dH to KickPin(1, 1)
- ApinDown(1, 1)
- set gAb to gNb
- RollBall(dH, 4)
- set gBall to gBall + 1
- set dH to KickPin(2, 3)
- PinKPin(2, 3)
- ApinDown(2, 3)
- RollBall(dH, 8)
- set gBall to gBall + 1
- set dH to KickPin(4, 6)
- PinKPin(4, 6)
- ApinDown(4, 6)
- RollBall(dH, 12)
- set gBall to gBall + 1
- set dH to KickPin(7, 10)
- PinKPin(7, 10)
- ApinDown(7, 10)
- if gPinSnd = 1 then
- set gPinSnd to 0
- puppetSound("NULLDOWN.AIF")
- end if
- end
-
- on KickPin P1, P2
- global gDel, gTime, gDely, gX1, gX2, gShot, gPinList, gGTR, gXBall, gYBall, gZBall, gBall, gAb, gNb, gpoint, gEBall, gHHList, gDDList, gTTList, gWWList, gBPList, gWPList, gDPList, gVPList, gDTList, gPHList, gPinSnd
- set gNb to gAb
- set bd to 0
- set pin to P1
- repeat while pin <= P2
- set pX to getAt(gHHList, pin)
- if gGTR > 0 then
- set Dpb to 100
- else
- set Dpb to pX - gXBall
- end if
- if (abs(Dpb) < 12) and (getAt(gPinList, pin) = 0) then
- if gPinSnd = 1 then
- set gPinSnd to 0
- puppetSound("PINDOWN.AIF")
- end if
- set Xd to getAt(gDDList, Dpb + 12)
- setAt(gPinList, pin, gDel)
- setAt(gPHList, pin, Dpb + pX)
- setAt(gBPList, gNb, Dpb + pX)
- setAt(gDPList, gNb, Xd)
- setAt(gWPList, gNb, 14 + getAt(gWWList, gShot))
- set Epin to integer(gEBall / 4)
- set gEBall to gEBall - Epin
- setAt(gVPList, gNb, Epin)
- set kt to getAt(gTTList, Dpb + 12)
- setAt(gDTList, pin, kt)
- set gpoint to gpoint + 1
- set gNb to gNb + 1
- else
- set Xd to 0
- end if
- set bd to bd - Xd
- set pin to pin + 1
- end repeat
- return bd
- end
-
- on PinKPin P1, P2
- global gDel, gTime, gDely, gX1, gX2, gShot, gPinList, gXBall, gYBall, gZBall, gBall, gAb, gNb, gpoint, gHHList, gDDList, gTTList, gWWList, gBPList, gWPList, gDPList, gVPList, gDTList, gPHList
- set bp to 1
- repeat while bp < gAb
- set pin to P1
- set bd to 0
- repeat while pin <= P2
- set Xd to 0
- set pX to getAt(gHHList, pin)
- set bX to getAt(gBPList, bp)
- set Dpb to pX - bX
- set Wd to 5 + integer(getAt(gWPList, bp) / 2)
- set Epin to getAt(gVPList, bp)
- if (abs(Dpb) < Wd) and (getAt(gPinList, pin) = 0) and (Epin >= 4) then
- if Dpb < -11 then
- set Dpb to -11
- end if
- if Dpb > 11 then
- set Dpb to 11
- end if
- set Epin to integer(Epin / 2)
- setAt(gVPList, bp, Epin)
- setAt(gVPList, gNb, Epin)
- set Xd to getAt(gDDList, Dpb + 12)
- setAt(gPinList, pin, gDel)
- setAt(gPHList, pin, Dpb + pX)
- setAt(gBPList, gNb, Dpb + pX)
- setAt(gDPList, gNb, Xd)
- setAt(gWPList, gNb, 14 + getAt(gWWList, gShot))
- set kt to getAt(gTTList, Dpb + 12)
- setAt(gDTList, pin, kt)
- set gpoint to gpoint + 1
- set gNb to gNb + 1
- else
- set Xd to 0
- end if
- set bd to bd - Xd
- set pin to pin + 1
- end repeat
- set bX to bX + bd + getAt(gDPList, bp)
- setAt(gBPList, bp, bX)
- set bp to bp + 1
- end repeat
- set gAb to gNb
- end
-
- on ApinDown P1, P2
- global gDel, gPinList, gDTList, gPHList
- set pdList to list("A1.BMP", "B1.BMP", "C1.BMP", "D1.BMP", "E1.BMP", "A2.BMP", "B2.BMP", "C2.BMP", "D2.BMP", "E2.BMP")
- set down to 0
- repeat while down < 2
- set pn to P1
- repeat while pn <= P2
- set pSprt to 24 - pn
- puppetSprite(pSprt, 1)
- if getAt(gPinList, pn) = gDel then
- set the visible of sprite (46 - pn) to 1
- set downType to getAt(gDTList, pn)
- set the locH of sprite pSprt to getAt(gPHList, pn)
- set the locV of sprite pSprt to the locV of sprite pSprt + 6
- set kc to integer(downType + (down * 5))
- set kc to the number of member getAt(pdList, kc)
- set the castNum of sprite pSprt to kc
- end if
- set pn to pn + 1
- end repeat
- updateStage()
- set down to down + 1
- end repeat
- end
-
- on exitFrame
- global gCase, gNo, gDel, gpoint, gSet, gStrike, gBonus, gRecord, gSum, gMinList, gAlley, gVALUE, gACC, gCheer, gGirl
- set gCheer to "ASWEEP"
- if (gDel = 1) and (gpoint = 10) then
- set gStrike to 1
- set gSet to 2
- else
- set gStrike to 0
- if gBonus = 1 then
- set gSet to 2
- else
- set gSet to gDel
- end if
- end if
- set the visible of sprite 46 to 0
- puppetSprite(46, 0)
- set gCase to "DOWN"
- set gNo to 1
- updateStage()
- gflag()
- keepSum()
- scoreDisp()
- if gGirl = 1 then
- getCheer()
- end if
- cursor(-1)
- go(gCheer)
- end
-
- on keepSum
- global gSum3, gSum, gFrame, gSumList, gScore, gAlley
- set gSum to gSum3
- end
-
- on getCheer
- global gDel, gFrame, gpoint, gPointLast, gStrike, gGTR, gAlley, gStartMov, gCheer, gChMov, gFINAL, gColor
- set ChMovList to list("AGC31.MOV", "AGC32.MOV", "AGC33.MOV", "AGC34.MOV", "AGC35.MOV", "AGC11.MOV", "AGC12.MOV", "AGC13.MOV", "AGC14.MOV", "AGC15.MOV", "AGC21.MOV", "AGC22.MOV", "AGC23.MOV", "AGC24.MOV", "AGC25.MOV")
- set girlmList to list("AGC31", "AGC32", "AGC33", "AGC34", "AGC35", "AGC11", "AGC12", "AGC13", "AGC14", "AGC15", "AGC21", "AGC22", "AGC23", "AGC24", "AGC25")
- set movOK to 0
- set kag to integer((gAlley - 1) * 5)
- if gStrike = 1 then
- set gChMov to getAt(ChMovList, 1 + kag)
- set gCheer to getAt(girlmList, 1 + kag)
- set movOK to 1
- else
- if (gDel = 2) and (gFrame < gFINAL) and ((gpoint + gPointLast) = 10) then
- set gChMov to getAt(ChMovList, 2 + kag)
- set gCheer to getAt(girlmList, 2 + kag)
- set movOK to 1
- else
- if (gDel = 2) and ((gpoint + gPointLast) < 2) then
- set gChMov to getAt(ChMovList, 3 + kag)
- set gCheer to getAt(girlmList, 3 + kag)
- set movOK to 1
- else
- if (gDel = 2) and ((gpoint + gPointLast) < 4) then
- set gChMov to getAt(ChMovList, 4 + kag)
- set gCheer to getAt(girlmList, 4 + kag)
- set movOK to 1
- else
- if gGTR > 0 then
- set gChMov to getAt(ChMovList, 5 + kag)
- set gCheer to getAt(girlmList, 5 + kag)
- set movOK to 1
- end if
- end if
- end if
- end if
- end if
- if movOK = 1 then
- repeat while soundBusy(1) = 1
- nothing()
- end repeat
- puppetSound(0)
- preLoadCast(gChMov)
- if gColor >= 16 then
- set the directToStage of cast gChMov to 1
- else
- set the directToStage of cast gChMov to 0
- end if
- set gStartMov to 1
- end if
- end
-